﻿@namespace MudBlazor.Docs.Examples

<MudGrid>
    <MudItem xs="12" sm="6" md="6">
        <MudSelect T="double" Label="Price (Datatype: double)" Clearable="true" Required="true">
            @foreach (var price in prices)
            {
            <MudSelectItem Value="@price" />
            }
        </MudSelect>
    </MudItem>

    <MudItem xs="12" sm="6" md="6">
        <MudSelect T="double?" Label="Price (Datatype: double?)" Clearable="true" Required="true">
            @foreach (double? price in prices)
            {
            <MudSelectItem Value="@price" />
            }
        </MudSelect>
    </MudItem>
</MudGrid>


@code
{
    private double[] prices = { 4.50, 4.99, 3.60, 21.99 };
}
